package com.gjs.management.pojo.dto.permission;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;


@Data
@ApiModel("Permission查询对象")
public class SysPermissionQueryDTO {

    @Min(value = 1,message = "权限ID必须为整数且不能小于1")
    @ApiModelProperty("权限ID")
    private Long id;

    @Min(value = 0,message = "父级权限ID必须为整数且不能小于0")
    @ApiModelProperty("父级权限ID")
    private Long pid;
}
